package com.imooc.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * ConfigurationProperties 把对应的属性的 girl 的属性配置 装配过来
 * Created by ancy on 2017/7/5.
 */
@Component
@ConfigurationProperties(prefix = "gril")
public class MyGirl {

    private String cupSize;

    private  Integer age;

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getCupSize() {
        return cupSize;
    }

    public void setCupSize(String cupSize) {
        this.cupSize = cupSize;
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
